<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

  <c:if test="${item.gradeItemId==1}">
  <script>
	function score1(){
		$("#gradeTermScore1").val(${item.gradeTermPoint});
		var gts=$("#gradeTermScore1").val();
		var s=$("#scoreSelect1").val();
		//alert(s);
		$("#gradeTermScore1").val(gts-s);
	}
</script>
<select onchange="score1()" id="scoreSelect1">
	<option value="">请选择...</option>
    <option value="3">大部分合理</option>
    <option value="6">少部分合理</option>
    <option value="10">不合理</option>
</select>
  </c:if>

  <c:if test="${item.gradeItemId==2}">
  <script>
  $(document).ready(function() {
	  $('#inP').numberspinner({
		  onSpinUp:function(){
			  score2();
		  },
		  onSpinDown:function(){
			  score2();
		  }
		});
	});
	function score2(){
		$("#gradeTermScore2").val(${item.gradeTermPoint});
		var gts=$("#gradeTermScore2").val();
		$("#gradeTermScore2").val(gts-$("#inP").val());
		if($("#inB").attr("checked")==true){
			var gts=$("#gradeTermScore2").val();
			$("#gradeTermScore2").val(gts-$("#inB").val());
		}
	}

</script>
				信息不全：<input  id="inP" class="easyui-numberspinner" min="0" max="${item.gradeTermPoint}" style="width:50px;" value="0" onchange="score2()" ></input>
 <br>工单诉求不明确：<input type="checkbox" id="inB"  value="5" onclick="score2()">
  </c:if>

    <c:if test="${item.gradeItemId==3}">
  <script>
  $(document).ready(function() {
	  $('#inP3').numberspinner({
		  onSpinUp:function(){
			  score3();
		  },
		  onSpinDown:function(){
			  score3();
		  }
		});
	});
	function score3(){
		$("#gradeTermScore3").val(${item.gradeTermPoint});

		var gts=$("#gradeTermScore3").val();
		gts=gts-$("#inP3").val();
		var s=$("#scoreSelect3").val();

		$("#gradeTermScore3").val(gts-s);


	}

</script>
				<select onchange="score3()" id="scoreSelect3">
	<option value="">请选择...</option>
    <option value="3">总体结构较合理</option>
    <option value="10">总体结构不合理</option>
</select>
 <br>局部不合理：<input  id="inP3" class="easyui-numberspinner" min="0" max="${item.gradeTermPoint}" style="width:50px;" value="0" onchange="score3()" ></input>
  </c:if>

  <c:if test="${item.gradeItemId==4}">
  <script>
  $(document).ready(function() {
	  $('#inP4').numberspinner({
		  onSpinUp:function(){
			  score4();
		  },
		  onSpinDown:function(){
			  score4();
		  }
		});
	});
	function score4(){
		$("#gradeTermScore4").val(${item.gradeTermPoint});

		var gts=$("#gradeTermScore4").val();
		gts=gts-$("#inP4").val();

		$("#gradeTermScore4").val(gts);
	}

</script>
措辞问题：<input  id="inP4" class="easyui-numberspinner" min="0" max="${item.gradeTermPoint}" style="width:50px;" value="0" onchange="score4()" ></input>
  </c:if>

   <c:if test="${item.gradeItemId==5}">
  <script>
  $(document).ready(function() {
	  $('#inP5').numberspinner({
		  onSpinUp:function(){
			  score5();
		  },
		  onSpinDown:function(){
			  score5();
		  }
		});
	});
	function score5(){
		$("#gradeTermScore5").val(${item.gradeTermPoint});

		var gts=$("#gradeTermScore5").val();
		gts=gts-$("#inP5").val();

		$("#gradeTermScore5").val(gts);
	}

</script>
逻辑问题：<input  id="inP5" class="easyui-numberspinner" min="0" max="${item.gradeTermPoint}" style="width:50px;" value="0" onchange="score5()" ></input>
  </c:if>

    <c:if test="${item.gradeItemId==6}">
  <script>
	function score6(){
		$("#gradeTermScore6").val(${item.gradeTermPoint});
		var gts=$("#gradeTermScore6").val();
		var s=$("#scoreSelect6").val();
		//alert(s);
		$("#gradeTermScore6").val(gts-s);
	}
</script>
<select onchange="score6()" id="scoreSelect6">
	<option value="">请选择...</option>
    <option value="2">1-2个</option>
    <option value="5">3-5个</option>
    <option value="10">6个以上</option>
</select>
  </c:if>

     <c:if test="${item.gradeItemId==7}">
  <script>
  $(document).ready(function() {
	  $('#inP7').numberspinner({
		  onSpinUp:function(){
			  score7();
		  },
		  onSpinDown:function(){
			  score7();
		  }
		});
	});
	function score7(){
		$("#gradeTermScore7").val(${item.gradeTermPoint});

		var gts=$("#gradeTermScore7").val();
		gts=gts-$("#inP7").val()*3;
		if(gts<0) gts=0;
		$("#gradeTermScore7").val(gts);
	}

</script>
病句：<input  id="inP7" class="easyui-numberspinner" min="0" max="${item.gradeTermPoint}" style="width:50px;" value="0" onchange="score7()" ></input>
  </c:if>